<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: SDK/all/include/JCStorage.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ca6309d378ceffb9970caf11a0592736.html">SDK</a></li><li class="navelem"><a class="el" href="dir_df301a42bdb8674e37034074c8aa490e.html">all</a></li><li class="navelem"><a class="el" href="dir_2a90b483303ce0af7319f0f0fd0c54ed.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCStorage.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;JCStorageConstants.h&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;JCStorageCallback.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;JCClient.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_j_c_storage.html">   15</a></span>&#160;<span class="keyword">class </span>JCSDK_API <a class="code" href="class_j_c_storage.html">JCStorage</a> {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_j_c_storage.html#a2650ded906b3384ebed9975e5feaa658">   27</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_j_c_storage_item.html">JCStorageItem</a>* <a class="code" href="class_j_c_storage.html#a2650ded906b3384ebed9975e5feaa658">uploadFileByExpireTime</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* path, <span class="keywordtype">int</span> expiredSeconds, <span class="keywordtype">int</span> cookie) = 0;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_j_c_storage.html#a6b8fb9cad5a5685da76108ab7b7980f1">   38</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_j_c_storage_item.html">JCStorageItem</a>* <a class="code" href="class_j_c_storage.html#a6b8fb9cad5a5685da76108ab7b7980f1">downloadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* uri, <span class="keyword">const</span> <span class="keywordtype">char</span>* savePath, <span class="keywordtype">int</span> cookie) = 0;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_j_c_storage.html#abf36c2065abd6187be60d73737a3c11e">   47</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_j_c_storage.html#abf36c2065abd6187be60d73737a3c11e">cancelFile</a>(<a class="code" href="class_j_c_storage_item.html">JCStorageItem</a>* item) = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_j_c_storage.html#a0dab1d1c49e01b85851178c110a58082">   56</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_j_c_storage.html#a0dab1d1c49e01b85851178c110a58082">cancelFileByCookie</a>(<span class="keywordtype">int</span> cookie) = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga73d635d6a613c3b631075cb71ebba63e">   72</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <a class="code" href="class_j_c_storage.html">JCStorage</a>* <a class="code" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga73d635d6a613c3b631075cb71ebba63e">createJCStorage</a>(<a class="code" href="class_j_c_client.html">JCClient</a>* client, <a class="code" href="class_j_c_storage_callback.html">JCStorageCallback</a>* callback);</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga4b8c62e07d32edcd5aa30b0951449b59">   76</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <span class="keywordtype">void</span> <a class="code" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga4b8c62e07d32edcd5aa30b0951449b59">destroyJCStorage</a>();</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_j_c_client_html"><div class="ttname"><a href="class_j_c_client.html">JCClient</a></div><div class="ttdef"><b>Definition:</b> JCClient.h:90</div></div>
<div class="ttc" id="agroup___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97_html_ga73d635d6a613c3b631075cb71ebba63e"><div class="ttname"><a href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga73d635d6a613c3b631075cb71ebba63e">createJCStorage</a></div><div class="ttdeci">JCSDK_API JCStorage * createJCStorage(JCClient *client, JCStorageCallback *callback)</div></div>
<div class="ttc" id="aclass_j_c_storage_item_html"><div class="ttname"><a href="class_j_c_storage_item.html">JCStorageItem</a></div><div class="ttdef"><b>Definition:</b> JCStorageItem.h:11</div></div>
<div class="ttc" id="aclass_j_c_storage_html_abf36c2065abd6187be60d73737a3c11e"><div class="ttname"><a href="class_j_c_storage.html#abf36c2065abd6187be60d73737a3c11e">JCStorage::cancelFile</a></div><div class="ttdeci">virtual bool cancelFile(JCStorageItem *item)=0</div></div>
<div class="ttc" id="aclass_j_c_storage_html_a0dab1d1c49e01b85851178c110a58082"><div class="ttname"><a href="class_j_c_storage.html#a0dab1d1c49e01b85851178c110a58082">JCStorage::cancelFileByCookie</a></div><div class="ttdeci">virtual bool cancelFileByCookie(int cookie)=0</div></div>
<div class="ttc" id="aclass_j_c_storage_html_a2650ded906b3384ebed9975e5feaa658"><div class="ttname"><a href="class_j_c_storage.html#a2650ded906b3384ebed9975e5feaa658">JCStorage::uploadFileByExpireTime</a></div><div class="ttdeci">virtual JCStorageItem * uploadFileByExpireTime(const char *path, int expiredSeconds, int cookie)=0</div></div>
<div class="ttc" id="agroup___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97_html_ga4b8c62e07d32edcd5aa30b0951449b59"><div class="ttname"><a href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html#ga4b8c62e07d32edcd5aa30b0951449b59">destroyJCStorage</a></div><div class="ttdeci">JCSDK_API void destroyJCStorage()</div></div>
<div class="ttc" id="aclass_j_c_storage_callback_html"><div class="ttname"><a href="class_j_c_storage_callback.html">JCStorageCallback</a></div><div class="ttdef"><b>Definition:</b> JCStorageCallback.h:12</div></div>
<div class="ttc" id="aclass_j_c_storage_html"><div class="ttname"><a href="class_j_c_storage.html">JCStorage</a></div><div class="ttdef"><b>Definition:</b> JCStorage.h:15</div></div>
<div class="ttc" id="aclass_j_c_storage_html_a6b8fb9cad5a5685da76108ab7b7980f1"><div class="ttname"><a href="class_j_c_storage.html#a6b8fb9cad5a5685da76108ab7b7980f1">JCStorage::downloadFile</a></div><div class="ttdeci">virtual JCStorageItem * downloadFile(const char *uri, const char *savePath, int cookie)=0</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
